//
//  AppTools.h
//  On The Load
//
//  Created by 我爱的妞 on 15/11/5.
//  Copyright © 2015年 @@叶一闽. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^AFNblock)(id result);
typedef void(^Failblock)(id result);

@interface AppTools : NSObject

+ (void)getAFN:(NSString *)string andpara:(NSDictionary *)para andBlock:(AFNblock)block andfailBlock:(Failblock)failblock;

+ (void)getAFNPOST:(NSString *)string andpara:(NSDictionary *)para andBlock:(AFNblock)block andfailBlock:(Failblock)failblock;

//获得当前时间
+ (NSString *)getCurrentTime;

//label自适应高度
+ (CGFloat)heightForLabel:(NSString *)content and:(CGFloat)fontSize andWidth:(CGFloat)width;

//label自适应宽度
+ (CGFloat)widthForLabel:(NSString *)content and:(CGFloat)fontSize andHeight:(CGFloat)height;

+ (void)saveArrayToFile:(NSString *)fileName andArray:(NSArray *)xmlArray;

//反归档
+ (NSMutableArray *)getArrayFromFile:(NSString *)fileName;

//cell自适应高度
+(CGFloat)heightForCell:(NSString *)content andwide:(CGFloat)wide;
@end
